#! /bin/sh

. /lib/lsb/init-functions

do_mtab()
{
	mountpoint -q 
}

do_start()
{
	local mpath=/var/misc/etc
	[ -d "$mpath" ] || mkdir -p "$mpath"
	touch "$mpath"/mtab
	[ "$(readlink -f /etc/mtab)" = "$mpath/mtab" ] || {
		rm -f /etc/mtab
		ln -s "$mpath/mtab" /etc/mtab
		: > /etc/mtab

	}
}

case "$1" in

esac
